package com.mengmaedu.servicefeign.controller;

import com.mengmaedu.servicefeign.feign.ISchedualServiceHi;
import com.mengmaedu.servicefeign.feign.IServiceRibbon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HiController {

    @Autowired
    ISchedualServiceHi schedualServiceHi;

    @Autowired
    IServiceRibbon serviceRibbon;

    @GetMapping(value = "/test")
    public String sayHi() {
        return schedualServiceHi.sayHiFromClientOne();
    }

    @GetMapping(value = "/test1")
    public String test() {
        return serviceRibbon.test();
    }
}
